package com.taojie.graduation.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 物流信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "logistics")
@ApiModel("物流信息")
public class Logistics {
    @ApiModelProperty("物流id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 出发地
     */
    @ApiModelProperty("物流出发地")
    @TableField(value = "start")
    private String start;

    /**
     * 目的地
     */
    @ApiModelProperty("物流目的地")
    @TableField(value = "end")
    private String end;

    /**
     * 所需时间
     */
    @ApiModelProperty("所需时间")
    @TableField(value = "time")
    private Integer time;

    /**
     * 订单id
     */
    @ApiModelProperty("订单id")
    @TableField(value = "order_id")
    private Integer orderId;

    /**
     * 是否送达， 是：1，否：0
     */
    @ApiModelProperty("是否送达")
    @TableField(value = "delivery")
    private Integer delivery;
}